#!/usr/bin/env python
'''
It is not clear if it is difference between OP and OPT, I'll try to compare
'''

from __future__ import division

import os
import matplotlib.pyplot
import common

path = os.path.join('..', '..', 'results', 'triang', 'J_-1.0')

lList = [9, 12, 15, 18, 24, 30, 36]

tB = common.choice(path)


L = 9

for variable in ['OP', 'OPT']:
    workpath = os.path.join(path, tB, ('L_{}'.format(L)), variable)
    tList, vList = common.sorted_list(workpath)
    
    matplotlib.pyplot.plot(tList, vList, label = "variable %s, $L = %i $"%(variable, L))

matplotlib.pyplot.legend()
matplotlib.pyplot.show()